<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>toDoList</title>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
	</head>
	<body>
		<div id="app">
			<input type="text" v-model="info"/> 
			<button @click="reduce()">add</button>
			<ul>
				<li v-for="item in arr">
					{{item}}
				</li>
			</ul>
		</div>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{
					info:'',
					arr:[]
				},
				methods:{
					reduce:function(){
						 this.arr.push(this.info);
						 this.info='';
					}
				}
			})
		</script>
	</body>
</html>
